package com.ktjy5.service;

import com.ktjy5.entity.Supplier;
import com.ktjy5.mapper.SupplierMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/12/9  11:33
 */
@Service("supplierService")
@Transactional
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;
    @Override
    public List<Supplier> selectSupname(Supplier supplier) {
        return supplierMapper.selectSupname(supplier);
    }

    @Override
    public int delete(Integer id) {
        return supplierMapper.delete(id);
    }

    @Override
    public int update(Supplier supplier) {
        return supplierMapper.update(supplier);
    }
}
